Repository navigation
refactor(actions): adopt Core CompositeToolCallBase, dynamic buildable catalog, and rotated blueprint fidelity - #23
Merged
Conversation
…e catalog, and rotated blueprint fidelity refactor(actions): extract shared construction chainer and dynamic buildable catalog Split oversized composite tool base and spatial solver into focused modules, and replace hardcoded structure lists with dynamic DefDatabase discovery. - Move generic composite plumbing (ExecuteAtomicAsync, argument parsing, Classify, Manifest, ToolScopes) into Core CompositeToolCallBase; Actions base now only layers ownership and localized permission guards. - Extract ConstructionIntentChainer shared by PlaceBlueprint and PlanRoomProject, removing duplicated intent-session and work-giver logic. - Split ColonySpatialClusterSolver into SpatialGridModels, SpatialBuildingClassifier, and SpatialAsciiRenderer; add footprint min-offset support so center-anchored multi-cell buildings are placed using their real occupied rect and interaction cell. - Add BuildableStructureCatalogPolicy and discover buildable structures from DefDatabase<ThingDef> (vanilla + modded) with category classification, cost formatting, affordability, and bounded ranking. - Delegate actor/map resolution to Core ActorMapResolver and resource counting to MapResourceCounter; parse arguments once per call. - Stop mutating player work priorities (no workSettings.SetPriority) in DesignateResources, ManageZone, and TriagePatient. - Add ToolScopes to all composite tools and enforce it in tests.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates all 11 composite tools onto Core CompositeToolCallBase with explicit ToolScopes and main-thread guard; replaces hardcoded buildable list with dynamic DefDatabase query (BuildableStructureCatalogPolicy); fixes rotated blueprint dimensions and interaction cell offsets (ConstructionIntentChainer); removes workSettings side-effects in resource designation; splits ColonySpatialClusterSolver. Verified with 109/109 tests and 50/50 live tool behavior suite.